/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: FactoryLocationController
 * Author:   周宏硕
 * Date:     2018/11/8 14:31
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.htwx.controller;


import com.htwx.entity.FactoryLocation;
import com.htwx.service.Impl.FactoryLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author 周宏硕
 * @create 2018/11/8
 * @since 1.0.0
 */
@RestController
@RequestMapping(value = "FactoryLocationController")
public class FactoryLocationController {

    @Autowired
    private FactoryLocationService factoryLocationService;



    //插入工厂位置信息
    @RequestMapping(value = "/insertSubmissionReport",method = RequestMethod.POST)
    public  String insertSubmissionReport(@RequestBody FactoryLocation factoryLocation){
        return  factoryLocationService.insertFactoryLocation(factoryLocation);
    }


    @RequestMapping(value = "/deleteFactoryLocation",method =RequestMethod.GET)
    public  Integer deleteFactoryLocation(Integer locationId){
        return  factoryLocationService.deleteFactoryLocation(locationId);
    }
}
